343c0e76fcd95ac739ca7cd6742c9d617e19fc37,hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/rawcoder/XORRawEncoder.java,XORRawEncoder,doEncode,#ByteBuffer[]#ByteBuffer[]#,28
Before Change
int bufSize = getChunkSize();
// Get the first buffer's data.
for (int j = 0; j < bufSize; j++) {
outputs[0].put(j, inputs[0].get(j));
}
// XOR with everything else.
After Change
// Get the first buffer's data.
int iIdx, oIdx;
for (iIdx = inputs[0].position(), oIdx = output.position();
iIdx < inputs[0].limit(); iIdx++, oIdx++) {
output.put(oIdx, inputs[0].get(iIdx));
}
// XOR with everything else.